package com.itheima.system.service;

import com.itheima.system.config.FeignLogConfig;
import com.itheima.system.pojo.Question;
import com.itheima.system.service.impl.SystemServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  10:22 2020/6/23</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/6/23      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
@FeignClient(value = "search-service",
        fallback = SystemServiceImpl.class,
        configuration = FeignLogConfig.class)
public interface SystemService {

    /**
    * @Date: 10:25 2020/6/23
    * @Param: [question]
    * @return: void
    * @Description: 添加问答
    **/
    @PostMapping("/search/addQuestion")
    String addQuestion(@RequestBody Question question);
}
